-- GENERATED SPELL FOR [Warlord Krom'zar] --


function spell0_9456(pUnit, Event) --@Create Krom\'zar\'s Banner,n/a--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(13965,pUnit:GetMainTank ())
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_9456', 1, 1)
end

function spell1_9456(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_9456', 586, 1)
end

function Sorts_9456(pUnit, Event)
local choix_sorts_9456 = math.random(0, 1)
if choix_sorts_9456 == 0 then
pUnit:RegisterEvent('spell0_9456', 1, 1)
end
if choix_sorts_9456 == 1 then
pUnit:RegisterEvent('spell1_9456', 1, 1)
end
end

function mob9456_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_9456', math.random(1500, 3000), 1)
end

function mob9456_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9456_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob9456_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(9456, 1, 'mob9456_Action')
RegisterUnitEvent(9456, 2, 'mob9456_Leave')
RegisterUnitEvent(9456, 3, 'mob9456_Kill')
RegisterUnitEvent(9456, 4, 'mob9456_Die')
